package com.baidu.health.service.impl;

import com.baidu.health.mapper.TbDiseasePaperMapper;
import com.baidu.health.pojo.ResultResponse;
import com.baidu.health.pojo.TbDiseasePaper;
import com.baidu.health.service.TbDiseasePaperService;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 *
 */
@Service
public class TbDiseasePaperServiceImpl extends ServiceImpl<TbDiseasePaperMapper, TbDiseasePaper>
    implements TbDiseasePaperService{
    @Autowired
    private TbDiseasePaperMapper tbDiseasePaperMapper;
    @Override
    public ResultResponse smartDialogueAnswer(Integer answerId) {
        QueryWrapper queryWrapper=new QueryWrapper();
        queryWrapper.eq("answer_id",answerId);
        TbDiseasePaper tbDiseasePaper = tbDiseasePaperMapper.selectOne(queryWrapper);
        return ResultResponse.SUCCESS(tbDiseasePaper);
    }
}




